
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>Introduction · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="chapter1/" />
    
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter active" data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    Introduction
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.1" data-path="chapter1/">
            
                <a href="chapter1/">
            
                    
                    Flutter vs React Native
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.2" data-path="chapter2/">
            
                <a href="chapter2/">
            
                    
                    环境配置
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.2.1" data-path="chapter2/section1.html">
            
                <a href="chapter2/section1.html">
            
                    
                    前置依赖环境
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.2.2" data-path="chapter2/section2.html">
            
                <a href="chapter2/section2.html">
            
                    
                    配置 Android 环境
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.2.3" data-path="chapter2/section3.html">
            
                <a href="chapter2/section3.html">
            
                    
                    配置 Flutter 环境
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.2.4" data-path="chapter2/section4.html">
            
                <a href="chapter2/section4.html">
            
                    
                    创建并运行 Flutter 项目
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.1.3" data-path="chapter3/">
            
                <a href="chapter3/">
            
                    
                    核心Widget的使用
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.3.1" data-path="chapter3/section3.html">
            
                <a href="chapter3/section3.html">
            
                    
                    MaterialApp
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.3.2" data-path="chapter3/section1.html">
            
                <a href="chapter3/section1.html">
            
                    
                    Text
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.3.3" data-path="chapter3/section2.html">
            
                <a href="chapter3/section2.html">
            
                    
                    Center
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.3.4" data-path="chapter3/section4.html">
            
                <a href="chapter3/section4.html">
            
                    
                    Scaffold
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.3.5" data-path="chapter3/section5.html">
            
                <a href="chapter3/section5.html">
            
                    
                    常用的布局组件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.3.6" data-path="chapter3/section6.html">
            
                <a href="chapter3/section6.html">
            
                    
                    AppBar
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.3.7" data-path="chapter3/section7.html">
            
                <a href="chapter3/section7.html">
            
                    
                    TabBar
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.3.8" data-path="chapter3/section8.html">
            
                <a href="chapter3/section8.html">
            
                    
                    TabController
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.3.9" data-path="chapter3/section9.html">
            
                <a href="chapter3/section9.html">
            
                    
                    TabBarView
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.3.10" data-path="chapter3/section10.html">
            
                <a href="chapter3/section10.html">
            
                    
                    Drawer
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.3.11" data-path="chapter3/section11.html">
            
                <a href="chapter3/section11.html">
            
                    
                    UserAccountsDrawerHeader
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.3.12" data-path="chapter3/section12.html">
            
                <a href="chapter3/section12.html">
            
                    
                    ListView
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.3.13" data-path="chapter3/section13.html">
            
                <a href="chapter3/section13.html">
            
                    
                    CircleAvatar
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.1.4" data-path="chapter4/">
            
                <a href="chapter4/">
            
                    
                    自定义 Widget
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.4.1" data-path="chapter4/section1.html">
            
                <a href="chapter4/section1.html">
            
                    
                    StatelessWidget
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.4.2" data-path="chapter4/section2.html">
            
                <a href="chapter4/section2.html">
            
                    
                    StatefulWidget
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.1.5" data-path="chapter5/">
            
                <a href="chapter5/">
            
                    
                    事件绑定
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.6" data-path="chapter6/">
            
                <a href="chapter6/">
            
                    
                    dio 数据请求
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.7" data-path="chapter7/">
            
                <a href="chapter7/">
            
                    
                    路由导航
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.8" data-path="chapter8/">
            
                <a href="chapter8/">
            
                    
                    修改 App 名称和图标
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.9" data-path="chapter9/">
            
                <a href="chapter9/">
            
                    
                    打包发布 Android 项目
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.10" data-path="chapter10/">
            
                <a href="chapter10/">
            
                    
                    项目中用到的资源
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >Introduction</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="introduction">Introduction</h1>
<h2 id="flutter&#x662F;&#x4EC0;&#x4E48;">Flutter&#x662F;&#x4EC0;&#x4E48;?</h2>
<p>Flutter &#x662F; Google &#x7528;&#x4EE5;&#x5E2E;&#x52A9;&#x5F00;&#x53D1;&#x8005;&#x5728; iOS &#x548C; Android &#x4E24;&#x4E2A;&#x5E73;&#x53F0;&#x5F00;&#x53D1;&#x9AD8;&#x8D28;&#x91CF;&#x539F;&#x751F; UI &#x7684;&#x79FB;&#x52A8; SDK&#xFF0C;&#x4E00;&#x4EFD;&#x4EE3;&#x7801;&#x53EF;&#x4EE5;&#x540C;&#x65F6;&#x751F;&#x6210;iOS&#x548C;Android&#x4E24;&#x4E2A;&#x9AD8;&#x6027;&#x80FD;&#x3001;&#x9AD8;&#x4FDD;&#x771F;&#x7684;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x3002;</p>
<p>Flutter&#x76EE;&#x6807;&#x662F;&#x4F7F;&#x5F00;&#x53D1;&#x4EBA;&#x5458;&#x80FD;&#x591F;&#x4EA4;&#x4ED8;&#x5728;&#x4E0D;&#x540C;&#x5E73;&#x53F0;&#x4E0A;&#x90FD;&#x611F;&#x89C9;&#x81EA;&#x7136;&#x6D41;&#x7545;&#x7684;&#x9AD8;&#x6027;&#x80FD;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x3002;&#x517C;&#x5BB9;&#x6EDA;&#x52A8;&#x884C;&#x4E3A;&#x3001;&#x6392;&#x7248;&#x3001;&#x56FE;&#x6807;&#x7B49;&#x65B9;&#x9762;&#x7684;&#x5DEE;&#x5F02;&#x3002;</p>
<p>&#x65E0;&#x9700;&#x79FB;&#x52A8;&#x5F00;&#x53D1;&#x7ECF;&#x9A8C;&#x5373;&#x53EF;&#x5F00;&#x59CB;&#x4F7F;&#x7528;&#x3002;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x662F;&#x7528; Dart &#x8BED;&#x8A00;&#x7F16;&#x5199;&#x7684;&#xFF0C;&#x5982;&#x679C;&#x60A8;&#x4F7F;&#x7528;&#x8FC7; Java &#x6216; JavaScript &#x4E4B;&#x7C7B;&#x7684;&#x8BED;&#x8A00;&#xFF0C;&#x5219;&#x8BE5;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x770B;&#x8D77;&#x6765;&#x5F88;&#x719F;&#x6089;&#x3002; &#x4F7F;&#x7528;&#x9762;&#x5411;&#x5BF9;&#x8C61;&#x8BED;&#x8A00;&#x7684;&#x7ECF;&#x9A8C;&#x7EDD;&#x5BF9;&#x6709;&#x5E2E;&#x52A9;&#xFF0C;&#x4F46;&#x4E00;&#x4E9B;Flutter&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x751A;&#x81F3;&#x662F;&#x6CA1;&#x6709;&#x7F16;&#x7A0B;&#x7ECF;&#x9A8C;&#x7684;&#x4EBA;&#x5199;&#x7684;&#xFF01;</p>
<h2 id="&#x4E3A;&#x4EC0;&#x4E48;&#x8981;&#x4F7F;&#x7528;flutter">&#x4E3A;&#x4EC0;&#x4E48;&#x8981;&#x4F7F;&#x7528;Flutter?</h2>
<ul>
<li><p>&#x63D0;&#x9AD8;&#x5F00;&#x53D1;&#x6548;&#x7387;</p>
<ul>
<li><p>&#x540C;&#x4E00;&#x4EFD;&#x4EE3;&#x7801;&#x5F00;&#x53D1;iOS&#x548C;Android</p>
</li>
<li><p>&#x7528;&#x66F4;&#x5C11;&#x7684;&#x4EE3;&#x7801;&#x505A;&#x66F4;&#x591A;&#x7684;&#x4E8B;&#x60C5;</p>
</li>
<li><p>&#x8F7B;&#x677E;&#x8FED;&#x4EE3;</p>
<ul>
<li><p>&#x5728;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x8FD0;&#x884C;&#x65F6;&#x66F4;&#x6539;&#x4EE3;&#x7801;&#x5E76;&#x91CD;&#x65B0;&#x52A0;&#x8F7D;&#xFF08;&#x901A;&#x8FC7;&#x70ED;&#x91CD;&#x8F7D;&#xFF09;</p>
</li>
<li><p>&#x4FEE;&#x590D;&#x5D29;&#x6E83;&#x5E76;&#x7EE7;&#x7EED;&#x4ECE;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x505C;&#x6B62;&#x7684;&#x5730;&#x65B9;&#x8FDB;&#x884C;&#x8C03;&#x8BD5;</p>
</li>
</ul>
</li>
</ul>
</li>
<li><p>&#x521B;&#x5EFA;&#x7F8E;&#x89C2;&#xFF0C;&#x9AD8;&#x5EA6;&#x5B9A;&#x5236;&#x7684;&#x7528;&#x6237;&#x4F53;&#x9A8C;</p>
<ul>
<li><p>&#x53D7;&#x76CA;&#x4E8E;&#x4F7F;&#x7528;Flutter&#x6846;&#x67B6;&#x63D0;&#x4F9B;&#x7684;&#x4E30;&#x5BCC;&#x7684;Material Design&#x548C;Cupertino&#xFF08;iOS&#x98CE;&#x683C;&#xFF09;&#x7684;widget</p>
</li>
<li><p>&#x5B9E;&#x73B0;&#x5B9A;&#x5236;&#x3001;&#x7F8E;&#x89C2;&#x3001;&#x54C1;&#x724C;&#x9A71;&#x52A8;&#x7684;&#x8BBE;&#x8BA1;&#xFF0C;&#x800C;&#x4E0D;&#x53D7;&#x539F;&#x751F;&#x63A7;&#x4EF6;&#x7684;&#x9650;&#x5236;</p>
</li>
</ul>
</li>
</ul>
<h2 id="&#x8BFE;&#x7A0B;&#x5185;&#x5BB9;&#x4ECB;&#x7ECD;">&#x8BFE;&#x7A0B;&#x5185;&#x5BB9;&#x4ECB;&#x7ECD;</h2>
<p>&#x672C;&#x8BFE;&#x7A0B;&#x4ECE; &#x73AF;&#x5883;&#x642D;&#x5EFA;&#x3001;&#x754C;&#x9762;&#x6E32;&#x67D3;&#x3001;&#x6570;&#x636E;&#x4EA4;&#x4E92;&#x3001;&#x8DEF;&#x7531;&#x5BFC;&#x822A;&#x3001;&#x6253;&#x5305;&#x53D1;&#x5E03; &#x7B49;&#x591A;&#x7EF4;&#x5EA6;&#x8BB2;&#x89E3; Flutter &#x5F00;&#x53D1;&#x7684;&#x6838;&#x5FC3;&#x6280;&#x672F;&#x70B9;&#xFF0C;&#x5E26;&#x4F60;&#x4E24;&#x5C0F;&#x65F6;&#x638C;&#x63E1; Flutter &#x79FB;&#x52A8; App &#x5F00;&#x53D1;&#x3002;</p>
<h2 id="&#x6838;&#x5FC3;&#x6280;&#x672F;&#x70B9;">&#x6838;&#x5FC3;&#x6280;&#x672F;&#x70B9;</h2>
<ul>
<li>&#x642D;&#x5EFA; Flutter &#x5F00;&#x53D1;&#x73AF;&#x5883;</li>
<li>&#x6838;&#x5FC3; Widget &#x7684;&#x4F7F;&#x7528;</li>
<li>&#x9875;&#x9762;&#x5E03;&#x5C40;&#x548C;&#x7F8E;&#x5316;</li>
<li>&#x81EA;&#x5B9A;&#x4E49; Widget</li>
<li>&#x4E8B;&#x4EF6;&#x7ED1;&#x5B9A;</li>
<li>dio &#x6570;&#x636E;&#x8BF7;&#x6C42;</li>
<li>&#x8DEF;&#x7531;&#x5BFC;&#x822A;</li>
<li>&#x4FEE;&#x6539; App &#x540D;&#x79F0;&#x548C;&#x56FE;&#x6807;</li>
<li>&#x6253;&#x5305;&#x53D1;&#x5E03;</li>
</ul>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                
                <a href="chapter1/" class="navigation navigation-next navigation-unique" aria-label="Next page: Flutter vs React Native">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"Introduction","level":"1.1","depth":1,"next":{"title":"Flutter vs React Native","level":"1.1.1","depth":2,"path":"chapter1/README.md","ref":"chapter1/README.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"README.md","mtime":"2018-12-15T12:16:39.031Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-12-17T10:25:33.898Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

